package com.oocl.service.impl;

import java.util.List;

import com.oocl.dao.BookDao;
import com.oocl.dao.impl.BookDaoImpl;
import com.oocl.pojo.Books;
import com.oocl.service.BookManager;
import com.oocl.util.InstanceFactory;

public class BookManagerImpl implements BookManager {
	private BookDao bookDao;
	
	public BookManagerImpl() {
		this.bookDao = InstanceFactory.newInstance(BookDaoImpl.class);
	}

	@Override
	public List<Books> findAll() {
		return bookDao.findAll();
	}

}
